Protect inclusion of unistd.h
authorHans Breuer <hans@breuer.org>
Sun, 2 Jan 2011 12:29:23 +0000 (13:29 +0100)
committerHans Breuer <hans@breuer.org>
Sun, 2 Jan 2011 12:29:23 +0000 (13:29 +0100)
gtk/gtkapplication.c

index 59c081bea1ba3b22968362c743fffdf7fbdc9377..90d4adfca881751d948fad3d8b557fc1435b3b1a 100644 (file)
@@ -22,7 +22,9 @@
 #include "config.h"
 
 #include <stdlib.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <string.h>
 
 #include "gtkapplication.h"